<?php
/**
 * Created by PhpStorm.
 * User: moquan
 * Date: 2019/3/12
 * Time: 20:39
 */

namespace app\admin\model;

class ServService extends BaseModel {

    protected function getStatusNameAttr($value, $data){
        $name = '';

        if ( $value == 1 ) {
            $name = '可用';
        }
        if ( $value == 0 ) {
            $name = '禁用';
        }

        return $name;
    }

}